package eu.performance.buffer;

/**
 * 缓存对象容器
 * 
 * @author wenjianwzz
 */
public class BufferedObject<T> {
	/** 存储内容 */
	private T object;

	private long lastAccess=0;
	
	/**
	 * @param value
	 *            Constructor 构造函数
	 */
	public BufferedObject(T value) {
		object = value;
		lastAccess=System.currentTimeMillis();
	}


	/**
	 * 
	 * @return 返回存储内容
	 */
	public T getObject() {
		lastAccess=System.currentTimeMillis();
		return object;
	}


	public long getLastAccess() {
		return lastAccess;
	}

}